package org.diysearch.models;

import java.util.HashMap;
import java.util.Map;

import org.diysearch.interfaces.Model;

public class Status extends BaseModel implements Model {
	public int code;
	public String message;
	public Map<String,Object> attributes = new HashMap<String,Object>();
	
	public Status() {}
	
	public void addAttribute(String key, Object value) {
		attributes.put(key, value);
	}
	
	public Object getAttribute(String key) {
		return attributes.get(key);
	}
	
	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Map<String, Object> getAttributes() {
		return attributes;
	}

	public void setAttributes(Map<String, Object> attributes) {
		this.attributes = attributes;
	}

	@Override
	public String getAliasName() {
		// TODO Auto-generated method stub
		return "status";
	}

}
